package com.fsp;

import jdk.internal.instrumentation.Logger;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.core.env.Environment;
import org.slf4j.LoggerFactory;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableAsync;
import org.springframework.scheduling.annotation.EnableScheduling;


//@ComponentScan("com.jiawa")
//@MapperScan("com.jiawa.wiki.mapper")
@EnableScheduling
@EnableAsync
@SpringBootApplication
@MapperScan("com.fsp.mapper")
public class WikiApplication {

    // private static final Logger LOG = (Logger) LoggerFactory.getLogger(WikiApplication.class);

    public static void main(String[] args) {
        /*SpringApplication app = new SpringApplication(WikiApplication.class);
        Environment env = app.run(args).getEnvironment();
        LOG.info("启动成功！！");
        LOG.info("地址: \\http://localhost:{}", env.getProperty("server.port"));*/
        SpringApplication.run(WikiApplication.class, args);
    }

}
